package com.hang.service;

import com.hang.entity.Department;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hang.model.dto.request.DepartmentModelReq;
import com.hang.model.dto.request.DepartmentQueryModelReq;
import com.hang.model.dto.request.DepartmentUserDTO;
import com.hang.model.dto.request.DepartmentUserQueryDTO;
import com.hang.model.dto.response.DepartmentQueryListVO;
import com.hang.model.vo.UserInfoVO;

import java.util.List;
import java.util.Map;

/**
 *
 */
public interface IDepartmentService extends IService<Department> {
    //创建部门
    boolean createDepartment(DepartmentModelReq departmentModelReq);

    //修改部门
    boolean updateDepartment(DepartmentModelReq departmentModelReq);

    //按条件搜索部门列表
    DepartmentQueryListVO getDepartmentsByCondition(DepartmentQueryModelReq departmentQueryModelReq);

    //添加部门成员
    String addUser(DepartmentUserDTO departmentUserDTO);

    //移除部门成员
    String removeUser(DepartmentUserDTO departmentUserDTO);

    //获取部门的成员列表
    List<UserInfoVO> getDepartmentUserByCondition(DepartmentUserQueryDTO departmentUserQueryDTO);
}
